package com.cci.kangdao.common;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @author William Du
 * @date 2019/8/28
 */
@Component
public class ApiApplicationListener implements ApplicationListener<ApplicationEvent> {

    private final static Log log = LogFactory.getLog(ApiApplicationListener.class);

    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        if (applicationEvent instanceof ContextRefreshedEvent) {
            log.info("e路康明斯系统启动完毕...");
        }
    }
}
